package com.atguigu.gmall.produck.client.Degrade;

import com.atguigu.gmall.model.product.*;
import com.atguigu.gmall.produck.client.ProductFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: 降级处理实现类
 * @Author: Mr.Cao
 * @DateTime: 2021/10/11 19:10
 * BMW F750GS
 **/
@Component
@Slf4j
public class ProductDegradeFeignClientImpl implements ProductFeignClient {
    @Override
    public SkuInfo getSkuInfo(long skuId) {
        //todo 进行降级处理
        SkuInfo skuInfo = new SkuInfo();
        log.error("降级处理");
        return skuInfo;
    }

    @Override
    public BaseCategoryView getCategory123(long category3Id) {
        return null;
    }

    @Override
    public BigDecimal getPrice(long skuId) {
        return null;
    }

    @Override
    public List<SpuSaleAttr> getSpuSaleAttrListCheckBySku(Long skuId, Long spuId) {
        return null;
    }

    @Override
    public Map getSkuValueIdsMap(Long spuId) {
        return null;
    }

    @Override
    public List<BaseCategoryView> getBaseCategoryViewList() {
        return null;
    }

    @Override
    public BaseTrademark getBaseTrademark(Long tmId) {
        return null;
    }

    @Override
    public List<SkuAttrValue> getSkuAttrValueAndAttrAndAttrValue(long skuId) {
        return null;
    }
}
